package com.example.sharding;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

//@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })//会使用jar自带的配置类,给我们配置一个单一数据源
@SpringBootApplication//会读取我们自己配置的yml文件,形成多数据源
@EnableDiscoveryClient
public class ShardingApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShardingApplication.class, args);

        System.out.println("swagger测试路径：http://localhost:18083/swagger-ui.html");
        System.out.println("swagger测试路径：http://localhost:18083/doc.html");

    }

}
